package com.哈希表;

import java.sql.SQLOutput;
import java.util.HashSet;
import java.util.Set;

public class 存在重复元素 {
    static class Solution {
        public boolean containsDuplicate(int[] nums) {
            Set<Integer> set = new HashSet<>();
            for(int i:nums){
                if(set.contains(i)){
                    return true;
                }
                else{
                    set.add(i);
                }
            }
            return false;
        }
    }

    public static void main(String[] args) {
        System.out.println(16%2);
    }
}
